<template>
  <nav>
    <ul>
      <router-link to="/film/nowPlaying" tag="li" active-class="active">正在热映</router-link>
      <router-link to="/film/comingSoon" tag="li" active-class="active">即将上线</router-link>
    </ul>
  </nav>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
nav{
  width: 100%;
  height: 50px;
  background-color: #fff;
  line-height: 50px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 99;
  ul{
    display: flex;
    li{
      flex: 1;
    }
  }
}
.active{
  color: rgb(233, 48, 48);
  border-bottom: 2px solid rgb(233, 48, 48);
}
</style>